//P1303 A*B Problem
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int c[4016];
string A,B;
int main(){
	cin >> A >> B;
	int length = A.length()+B.length();
	if(A=="0" || B=="0"){
		cout << "0";
		return 0;
	}
	for(int i=0;i<B.length();i++){
		for(int j=0;j<A.length();j++){
			c[i+j] += (B[B.length()-1-i]-'0') * (A[A.length()-1-j]-'0');
		}
	}
	for(int i=0;i<length;i++){
		c[i+1] += c[i]/10;
		c[i] = c[i]%10;
	}
	int k=0;
	for(int i=length-1;i>=0;i--){
		if(c[i]==0 && k==0) {
			continue;
		} else {
			k=1;
		}
		cout << c[i];
	}
}
